package com.css.zfzx.fxpg.modules.middle.service;

import com.alibaba.fastjson.JSONObject;
import com.css.zfzx.fxpg.modules.middle.repository.entity.FxMiddleResultEntity;
import com.css.zfzx.fxpg.modules.middle.viewobjects.FxMiddleResultQueryParams;
import com.css.bpm.platform.sys.dict.repository.entity.DictItemEntity;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author andy
 * @date 2020-11-12
 */

public interface FxMiddleResultService {

    public JSONObject queryFxMiddleResults(FxMiddleResultQueryParams queryParams, int curPage, int pageSize);

    public FxMiddleResultEntity getFxMiddleResult(String id);

    public FxMiddleResultEntity saveFxMiddleResult(FxMiddleResultEntity fxMiddleResult);

    public FxMiddleResultEntity updateFxMiddleResult(FxMiddleResultEntity fxMiddleResult);

    public void deleteFxMiddleResults(List<String> ids);

    List<DictItemEntity> getValidDictItemsByDictCode(String dictCode);

    String findByDictCodeAndDictItemCode(String dictCode, String dictItemCode);

    String exportExcel(FxMiddleResultQueryParams queryParams, HttpServletResponse response);

    public List<FxMiddleResultEntity> queryFxMiddleResults(FxMiddleResultQueryParams queryParams);

    public String importExcel(MultipartFile file);

    public void saveOrUpdate(FxMiddleResultEntity middleResultEntity);
}
